//
//  TEScrollViewController.m
//  TintExample
//
//  Created by Kevin Wu on 4/2/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import "TEScrollViewController.h"


@implementation TEScrollViewController

- (void)loadView {
    [super loadView];
    
    self.view.backgroundColor = [UIColor lightGrayColor];
    
    
    _scrollView = [[TTScrollView alloc] init];
    _scrollView.frame = TTRectMake(0.0, 100.0, 320.0, 200.0);
    [self.view addSubview:_scrollView];
    _scrollView.contentSize = TTSizeMake(320.0, 300.0);
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self addButtonWithTitle:@"Toggle shadow" selector:@selector(toggleShadows:)];
}

- (void)toggleShadows:(id)sender {
    static BOOL showShadow = NO;
    showShadow = !showShadow;
    
    _scrollView.showShadows = showShadow;
}

@end
